package com.futureweaver.service.impl;

import com.futureweaver.domain.Register;
import com.futureweaver.mapper.RegisterMapper;
import com.futureweaver.service.RegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RegisterServiceImpl implements RegisterService {
    @Autowired
    private RegisterMapper mapper;

    @Override
    public boolean insert(Register register) {
        return mapper.insert(register) == 1;
    }

    @Override
    public List<Register> query(Register vo) {
        return mapper.query(vo);
    }
}
